<template>
  <el-card class="page-tools">
    <el-row type="flex" justify="space-between" align="middle">
      <el-col v-show="showBefore">

        <slot name="before" />

      </el-col>
      <el-col>
        <el-row type="flex" justify="end">
          <slot name="after" />
        </el-row>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
export default {
  props: {
    showBefore: {
      type: Boolean,
      default: true
    }
  }

}
</script>

<style lang="scss" scoped>
.page-tools{
    .before{
        display: inline-block;
        padding: 10px;

    }
}
</style>
